import java.util.*;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 石方旭
 * Date: 2022-07-12
 * Time: 14:24
 */

//Enter password: ******
//        Welcome to the MySQL monitor.  Commands end with ; or \g.
//        Your MySQL connection id is 11
//        Server version: 5.7.27-log MySQL Community Server (GPL)
//
//        Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
//
//        Oracle is a registered trademark of Oracle Corporation and/or its
//        affiliates. Other names may be trademarks of their respective
//        owners.
//
//        Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
//
//        mysql> show tables;
//        ERROR 1046 (3D000): No database selected
//        mysql> show databases;
//        +--------------------+
//        | Database           |
//        +--------------------+
//        | information_schema |
//        | mysql              |
//        | performance_schema |
//        | sys                |
//        | test2              |
//        +--------------------+
//        5 rows in set (0.00 sec)
//
//        mysql> use test2;
//        Database changed
//        mysql> show tables;
//        +-----------------+
//        | Tables_in_test2 |
//        +-----------------+
//        | article         |
//        | booktable       |
//        | commoditytable  |
//        | student         |
//        | user            |
//        +-----------------+
//        5 rows in set (0.00 sec)
//
//        mysql> show booktables;
//        ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'booktables' at line 1
//        mysql> select * from booktable;
//        +-----------+-----------+-------+---------------------+
//        | name      | author    | price | publish_date        |
//        +-----------+-----------+-------+---------------------+
//        | 红楼梦    | 曹雪芹    |    56 | 2019-05-06 00:00:00 |
//        | NULL      | unknown   |    32 | 2000-06-05 00:00:00 |
//        | java      | unknown   |    12 | 2020-06-05 00:00:00 |
//        | cpp       | NULL      |    56 | 2010-06-05 00:00:00 |
//        +-----------+-----------+-------+---------------------+
//        4 rows in set (0.01 sec)
//
//        mysql> select * from student;
//        +--------------+------+
//        | name         | age  |
//        +--------------+------+
//        | 张无忌       |   19 |
//        | 张三丰       |   64 |
//        | 王二麻       |   64 |
//        | 李四         |    4 |
//        | 王二麻子     |   25 |
//        | 赵六         |   32 |
//        | 王二麻子     |   25 |
//        | 王二麻子     |   25 |
//        | 赵六         |   21 |
//        | NULL         |   25 |
//        | NULL         |   25 |
//        | NULL         |   62 |
//        | NULL         |    7 |
//        +--------------+------+
//        13 rows in set (0.01 sec)
//
//        mysql> drop table student;
//        Query OK, 0 rows affected (0.01 sec)
//
//        mysql> create table student(id int,name varchar(20));
//        Query OK, 0 rows affected (0.03 sec)
//
//        mysql> desc student;
//        +-------+-------------+------+-----+---------+-------+
//        | Field | Type        | Null | Key | Default | Extra |
//        +-------+-------------+------+-----+---------+-------+
//        | id    | int(11)     | YES  |     | NULL    |       |
//        | name  | varchar(20) | YES  |     | NULL    |       |
//        +-------+-------------+------+-----+---------+-------+
//        2 rows in set (0.01 sec)
//
//        mysql> insert into student values(NULL,NULL);
//        Query OK, 1 row affected (0.00 sec)
//
//        mysql> select * from student;
//        +------+------+
//        | id   | name |
//        +------+------+
//        | NULL | NULL |
//        +------+------+
//        1 row in set (0.00 sec)
//
//        mysql> drop table student;
//        Query OK, 0 rows affected (0.01 sec)
//
//        mysql> create table student(id int not null,name varchar(20) not null);
//        Query OK, 0 rows affected (0.03 sec)
//
//        mysql> select * from student;
//        Empty set (0.01 sec)
//
//        mysql> insert into student values(NULL,NULL);
//        ERROR 1048 (23000): Column 'id' cannot be null
//        mysql> desc student;
//        +-------+-------------+------+-----+---------+-------+
//        | Field | Type        | Null | Key | Default | Extra |
//        +-------+-------------+------+-----+---------+-------+
//        | id    | int(11)     | NO   |     | NULL    |       |
//        | name  | varchar(20) | NO   |     | NULL    |       |
//        +-------+-------------+------+-----+---------+-------+
//        2 rows in set (0.00 sec)
//
//        mysql> drop table student;
//        Query OK, 0 rows affected (0.01 sec)
//
//        mysql> create table student(id int,name varchar(20));
//        Query OK, 0 rows affected (0.03 sec)
//
//        mysql> desc student;
//        +-------+-------------+------+-----+---------+-------+
//        | Field | Type        | Null | Key | Default | Extra |
//        +-------+-------------+------+-----+---------+-------+
//        | id    | int(11)     | YES  |     | NULL    |       |
//        | name  | varchar(20) | YES  |     | NULL    |       |
//        +-------+-------------+------+-----+---------+-------+
//        2 rows in set (0.01 sec)
//
//        mysql> insert into student values(1,'张三');
//        Query OK, 1 row affected (0.00 sec)
//
//        mysql> insert into student values(1,'张三');
//        Query OK, 1 row affected (0.00 sec)
//
//        mysql> insert into student values(1,'张三');
//        Query OK, 1 row affected (0.00 sec)
//
//        mysql> insert into student values(1,'张三');
//        Query OK, 1 row affected (0.00 sec)
//
//        mysql> select * from student;
//        +------+--------+
//        | id   | name   |
//        +------+--------+
//        |    1 | 张三   |
//        |    1 | 张三   |
//        |    1 | 张三   |
//        |    1 | 张三   |
//        +------+--------+
//        4 rows in set (0.00 sec)
//
//        mysql> drop table student;
//        Query OK, 0 rows affected (0.01 sec)
//
//        mysql> create table student values(id int,name varchar(20));
//        ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'values(id int,name varchar(20))' at line 1
//        mysql> create table student(id int,name varchar(20));
//        Query OK, 0 rows affected (0.03 sec)
//
//        mysql> drop table student;
//        Query OK, 0 rows affected (0.01 sec)
//
//        mysql> create table student(id int unique,name varchar(20));
//        Query OK, 0 rows affected (0.03 sec)
//
//        mysql> desc student;
//        +-------+-------------+------+-----+---------+-------+
//        | Field | Type        | Null | Key | Default | Extra |
//        +-------+-------------+------+-----+---------+-------+
//        | id    | int(11)     | YES  | UNI | NULL    |       |
//        | name  | varchar(20) | YES  |     | NULL    |       |
//        +-------+-------------+------+-----+---------+-------+
//        2 rows in set (0.01 sec)
//
//        mysql> insert into student values(1,'张三');
//        Query OK, 1 row affected (0.00 sec)
//
//        mysql> insert into student values(1,'张三');
//        ERROR 1062 (23000): Duplicate entry '1' for key 'id'
//        mysql> drop table student;
//        Query OK, 0 rows affected (0.01 sec)
//
//        mysql> create table student(id int,name varchar(20));
//        Query OK, 0 rows affected (0.03 sec)
//
//        mysql> desc student;
//        +-------+-------------+------+-----+---------+-------+
//        | Field | Type        | Null | Key | Default | Extra |
//        +-------+-------------+------+-----+---------+-------+
//        | id    | int(11)     | YES  |     | NULL    |       |
//        | name  | varchar(20) | YES  |     | NULL    |       |
//        +-------+-------------+------+-----+---------+-------+
//        2 rows in set (0.01 sec)
//
//        mysql> insert into student(id) values(1);-- 指定id列插入
//        Query OK, 1 row affected (0.00 sec)
//
//        mysql> select * from student;
//        +------+------+
//        | id   | name |
//        +------+------+
//        |    1 | NULL |
//        +------+------+
//        1 row in set (0.00 sec)
//
//        mysql> drop table student;
//        Query OK, 0 rows affected (0.01 sec)
//
//        mysql> create table student(id int default 0,name varchar(20) '无名氏');
//        ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''无名氏')' at line 1
//        mysql> create table student(id int default 0,name varchar(20) default '无名氏');
//        Query OK, 0 rows affected (0.02 sec)
//
//        mysql> select * from student;
//        Empty set (0.01 sec)
//
//        mysql> insert into student(id) values(9);
//        Query OK, 1 row affected (0.00 sec)
//
//        mysql> select * from student;
//        +------+-----------+
//        | id   | name      |
//        +------+-----------+
//        |    9 | 无名氏    |
//        +------+-----------+
//        1 row in set (0.00 sec)
//
//        mysql> desc student;
//        +-------+-------------+------+-----+-----------+-------+
//        | Field | Type        | Null | Key | Default   | Extra |
//        +-------+-------------+------+-----+-----------+-------+
//        | id    | int(11)     | YES  |     | 0         |       |
//        | name  | varchar(20) | YES  |     | 无名氏    |       |
//        +-------+-------------+------+-----+-----------+-------+
//        2 rows in set (0.00 sec)
//
//        mysql> drop table student;
//        Query OK, 0 rows affected (0.01 sec)
//
//        mysql> create table student(id int,name varchar(20));
//        Query OK, 0 rows affected (0.03 sec)
//
//        mysql> drop table student;
//        Query OK, 0 rows affected (0.01 sec)
//
//        mysql> create table student(id int,name varchar(20));
//        Query OK, 0 rows affected (0.02 sec)
//
//        mysql> desc student;
//        +-------+-------------+------+-----+---------+-------+
//        | Field | Type        | Null | Key | Default | Extra |
//        +-------+-------------+------+-----+---------+-------+
//        | id    | int(11)     | YES  |     | NULL    |       |
//        | name  | varchar(20) | YES  |     | NULL    |       |
//        +-------+-------------+------+-----+---------+-------+
//        2 rows in set (0.01 sec)
//
//        mysql> drop table student;
//        Query OK, 0 rows affected (0.01 sec)
//
//        mysql> create table student(id int,name varchar(20));
//        Query OK, 0 rows affected (0.03 sec)
//
//        mysql> drop table student;
//        Query OK, 0 rows affected (0.01 sec)
//
//        mysql> create table student(id int primary key,name varchar(20));
//        Query OK, 0 rows affected (0.02 sec)
//
//        mysql> desc student;
//        +-------+-------------+------+-----+---------+-------+
//        | Field | Type        | Null | Key | Default | Extra |
//        +-------+-------------+------+-----+---------+-------+
//        | id    | int(11)     | NO   | PRI | NULL    |       |
//        | name  | varchar(20) | YES  |     | NULL    |       |
//        +-------+-------------+------+-----+---------+-------+
//        2 rows in set (0.01 sec)
//
//        mysql> insert into student values(NULL,'张三');
//        ERROR 1048 (23000): Column 'id' cannot be null
//        mysql> insert into student values(1,'张三');
//        Query OK, 1 row affected (0.00 sec)
//
//        mysql> insert into student values(1,'张三');
//        ERROR 1062 (23000): Duplicate entry '1' for key 'PRIMARY'
//        mysql> drop table student;
//        Query OK, 0 rows affected (0.01 sec)
//
//        mysql> create table student values(id int primary key,name varchar(20) primary key);
//        ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'values(id int primary key,name varchar(20) primary key)' at line 1
//        mysql> create table student (id int primary key,name varchar(20) primary key);
//        ERROR 1068 (42000): Multiple primary key defined
//        mysql> drop table student;
//        ERROR 1051 (42S02): Unknown table 'test2.student'
//        mysql> show tables;
//        +-----------------+
//        | Tables_in_test2 |
//        +-----------------+
//        | article         |
//        | booktable       |
//        | commoditytable  |
//        | user            |
//        +-----------------+
//        4 rows in set (0.00 sec)
//
//        mysql> create table student (id int auto_increment ,name varchar(20));
//        ERROR 1075 (42000): Incorrect table definition; there can be only one auto column and it must be defined as a key
//        mysql> create table student (id int primary key auto_increment ,name varchar(20));
//        Query OK, 0 rows affected (0.02 sec)
//
//        mysql> desc student;
//        +-------+-------------+------+-----+---------+----------------+
//        | Field | Type        | Null | Key | Default | Extra          |
//        +-------+-------------+------+-----+---------+----------------+
//        | id    | int(11)     | NO   | PRI | NULL    | auto_increment |
//        | name  | varchar(20) | YES  |     | NULL    |                |
//        +-------+-------------+------+-----+---------+----------------+
//        2 rows in set (0.01 sec)
//
//        mysql> insert into student values(NULL,'张三');
//        Query OK, 1 row affected (0.00 sec)
//
//        mysql> insert into student values(NULL,'张三');
//        Query OK, 1 row affected (0.00 sec)
//
//        mysql> insert into student values(NULL,'张三');
//        Query OK, 1 row affected (0.00 sec)
//
//        mysql> insert into student values(NULL,'张三');
//        Query OK, 1 row affected (0.00 sec)
//
//        mysql> insert into student values(NULL,'张三');
//        Query OK, 1 row affected (0.00 sec)
//
//        mysql> select * from student;
//        +----+--------+
//        | id | name   |
//        +----+--------+
//        |  1 | 张三   |
//        |  2 | 张三   |
//        |  3 | 张三   |
//        |  4 | 张三   |
//        |  5 | 张三   |
//        +----+--------+
//        5 rows in set (0.00 sec)
//
//        mysql> insert into student values(50,'李四');
//        Query OK, 1 row affected (0.00 sec)
//
//        mysql> insert into student values(NULL,'李四');
//        Query OK, 1 row affected (0.00 sec)
//
//        mysql> insert into student values(NULL,'李四');
//        Query OK, 1 row affected (0.00 sec)
//
//        mysql> insert into student values(NULL,'李四');
//        Query OK, 1 row affected (0.00 sec)
//
//        mysql> insert into student values(NULL,'李四');
//        Query OK, 1 row affected (0.00 sec)
//
//        mysql> insert into student values(NULL,'李四');
//        Query OK, 1 row affected (0.00 sec)
//
//        mysql> select * from student;
//        +----+--------+
//        | id | name   |
//        +----+--------+
//        |  1 | 张三   |
//        |  2 | 张三   |
//        |  3 | 张三   |
//        |  4 | 张三   |
//        |  5 | 张三   |
//        | 50 | 李四   |
//        | 51 | 李四   |
//        | 52 | 李四   |
//        | 53 | 李四   |
//        | 54 | 李四   |
//        | 55 | 李四   |
//        +----+--------+
//        11 rows in set (0.00 sec)
//
//        mysql> show tables;
//        +-----------------+
//        | Tables_in_test2 |
//        +-----------------+
//        | article         |
//        | booktable       |
//        | commoditytable  |
//        | student         |
//        | user            |
//        +-----------------+
//        5 rows in set (0.00 sec)
//
//        mysql> create table class(classId int,name varchar(20));
//        Query OK, 0 rows affected (0.03 sec)
//
//        mysql> create table student(studentId int,name varchar(20),classId int,foreign key(classId) references class(classId));
//        ERROR 1050 (42S01): Table 'student' already exists
//        mysql> drop table student;
//        Query OK, 0 rows affected (0.01 sec)
//
//        mysql> create table student(studentId int,name varchar(20),classId int,foreign key(classId) references class(classId));
//        ERROR 1215 (HY000): Cannot add foreign key constraint
//        mysql> drop table class;
//Query OK, 0 rows affected (0.01 sec)
//
//        mysql> drop table student;
//        ERROR 1051 (42S02): Unknown table 'test2.student'
//        mysql> create table class(classId int,name varchar(20));
//        Query OK, 0 rows affected (0.03 sec)
//
//        mysql> drop table class;
//Query OK, 0 rows affected (0.01 sec)
//
//        mysql> create table class(classId int primary key auto_increment,name varchar(20));
//        Query OK, 0 rows affected (0.03 sec)
//
//        mysql> create table student(studentId int,name varchar(20),classId int, foreign key(classId) references class(classId));
//        Query OK, 0 rows affected (0.03 sec)
//
//        mysql> drop table student;
//        Query OK, 0 rows affected (0.01 sec)
//
//        mysql> drop table class;
//Query OK, 0 rows affected (0.01 sec)
//
//        mysql> -- 产生班级表
//        mysql> ^C
//        mysql> -- 产生班级表 ->班级表与学生表产生联系的字段必须是用主键或者unique来修饰
//        mysql> create table class (classId int primary key auto_increment,name varchar(20));
//        Query OK, 0 rows affected (0.03 sec)
//
//        mysql> -- 创建学生表 ->学生表与班级表产生联系的字段要与外键修饰
//        mysql> create table student(studentId int,name varchar(20),classId int,foreign key(classId) class(classId));
//        ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'class(classId))' at line 1
//        mysql> create table student(studentId int,name varchar(20),classId int,foreign key(classId) references class(classId));
//        Query OK, 0 rows affected (0.03 sec)
//
//        mysql> desc student;
//        +-----------+-------------+------+-----+---------+-------+
//        | Field     | Type        | Null | Key | Default | Extra |
//        +-----------+-------------+------+-----+---------+-------+
//        | studentId | int(11)     | YES  |     | NULL    |       |
//        | name      | varchar(20) | YES  |     | NULL    |       |
//        | classId   | int(11)     | YES  | MUL | NULL    |       |
//        +-----------+-------------+------+-----+---------+-------+
//        3 rows in set (0.01 sec)
//
//        mysql> desc class;
//+---------+-------------+------+-----+---------+----------------+
//        | Field   | Type        | Null | Key | Default | Extra          |
//        +---------+-------------+------+-----+---------+----------------+
//        | classId | int(11)     | NO   | PRI | NULL    | auto_increment |
//        | name    | varchar(20) | YES  |     | NULL    |                |
//        +---------+-------------+------+-----+---------+----------------+
//        2 rows in set (0.01 sec)
//
//        mysql> drop table student;
//        Query OK, 0 rows affected (0.01 sec)
//
//        mysql> drop table class;
//Query OK, 0 rows affected (0.01 sec)
//
//        mysql> create table class(classId int primary key auto_increment,name varchar(20));
//        Query OK, 0 rows affected (0.02 sec)
//
//        mysql> create table student(studentId int primary key auto_increment,name varchar(20),classId int,foreign key(classId) references class(classId));
//        Query OK, 0 rows affected (0.03 sec)
//
//        mysql> desc class;
//+---------+-------------+------+-----+---------+----------------+
//        | Field   | Type        | Null | Key | Default | Extra          |
//        +---------+-------------+------+-----+---------+----------------+
//        | classId | int(11)     | NO   | PRI | NULL    | auto_increment |
//        | name    | varchar(20) | YES  |     | NULL    |                |
//        +---------+-------------+------+-----+---------+----------------+
//        2 rows in set (0.01 sec)
//
//        mysql> desc student;
//        +-----------+-------------+------+-----+---------+----------------+
//        | Field     | Type        | Null | Key | Default | Extra          |
//        +-----------+-------------+------+-----+---------+----------------+
//        | studentId | int(11)     | NO   | PRI | NULL    | auto_increment |
//        | name      | varchar(20) | YES  |     | NULL    |                |
//        | classId   | int(11)     | YES  | MUL | NULL    |                |
//        +-----------+-------------+------+-----+---------+----------------+
//        3 rows in set (0.01 sec)
//
//        mysql> insert into student values(1,'张三',1);
//        ERROR 1452 (23000): Cannot add or update a child row: a foreign key constraint fails (`test2`.`student`, CONSTRAINT `student_ibfk_1` FOREIGN KEY (`classId`) REFERENCES `class` (`classId`))
//        mysql> insert into class values(1,'1班');
//Query OK, 1 row affected (0.00 sec)
//
//        mysql> insert into class values(2,'2班'),(3,'3班'),(4,'4班'),(5,'5班');
//        Query OK, 4 rows affected (0.00 sec)
//        Records: 4  Duplicates: 0  Warnings: 0
//
//        mysql> select * from class;
//+---------+------+
//        | classId | name |
//        +---------+------+
//        |       1 | 1班  |
//        |       2 | 2班  |
//        |       3 | 3班  |
//        |       4 | 4班  |
//        |       5 | 5班  |
//        +---------+------+
//        5 rows in set (0.00 sec)
//
//        mysql> insert into student values(32,'张三',8);
//        ERROR 1452 (23000): Cannot add or update a child row: a foreign key constraint fails (`test2`.`student`, CONSTRAINT `student_ibfk_1` FOREIGN KEY (`classId`) REFERENCES `class` (`classId`))
//        mysql> insert into student values(98,'李四',1);-- 往classId 1 中插入学生
//        Query OK, 1 row affected (0.00 sec)
//
//        mysql> drop from class where classId = 1;
//        ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from class where classId = 1' at line 1
//        mysql> delete from class where classId = 1;
//        ERROR 1451 (23000): Cannot delete or update a parent row: a foreign key constraint fails (`test2`.`student`, CONSTRAINT `student_ibfk_1` FOREIGN KEY (`classId`) REFERENCES `class` (`classId`))
//        mysql>

public class TestDemo {


    public static void main(String[] args){
        HashMap<String,Integer> map = new HashMap<>();
        Scanner scan = new Scanner(System.in);
        while(scan.hasNextLine()){
            String str = scan.next();
            if(!map.containsKey(str)){
                map.put(str,1);
            }else {
                map.put(str,map.get(str)+1);
            }
        }
        System.out.println(map.size());
    }


}
    //BUTTER FLOUR
    //HONEY FLOUR EGG